package com.Entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * FamiliesInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "familiesInfo", catalog = "smartsofa")
public class FamiliesInfo implements java.io.Serializable {

	// Fields

	private Integer familyId;
	private String familyName;
	private Integer adminId;
	private String familyImg;
	private Date createTime;
	private String signature;
	private short memberNum;

	// Constructors

	/** default constructor */
	public FamiliesInfo() {
	}

	/** full constructor */
	public FamiliesInfo(String familyName, Integer adminId, String familyImg,
			Date createTime, String signature, short memberNum) {
		this.familyName = familyName;
		this.adminId = adminId;
		this.familyImg = familyImg;
		this.createTime = createTime;
		this.signature = signature;
		this.memberNum = memberNum;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "familyId", unique = true, nullable = false)
	public Integer getFamilyId() {
		return this.familyId;
	}

	public void setFamilyId(Integer familyId) {
		this.familyId = familyId;
	}

	@Column(name = "familyName", length = 200)
	public String getFamilyName() {
		return this.familyName;
	}

	public void setFamilyName(String familyName) {
		this.familyName = familyName;
	}

	@Column(name = "adminId")
	public Integer getAdminId() {
		return this.adminId;
	}

	public void setAdminId(Integer adminId) {
		this.adminId = adminId;
	}

	@Column(name = "familyImg", length = 200)
	public String getFamilyImg() {
		return this.familyImg;
	}

	public void setFamilyImg(String familyImg) {
		this.familyImg = familyImg;
	}

	@Column(name = "createTime", length = 8)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "signature", length = 200)
	public String getSignature() {
		return this.signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	@Column(name = "memberNum")
	public short getMemberNum() {
		return this.memberNum;
	}

	public void setMemberNum(short memberNum) {
		this.memberNum = memberNum;
	}

}